package com.doitedu.day01

/**
 * @Date 22.6.19
 * @Created by HANGGE
 * @Description
 */
object _01打印 {
  def main(args: Array[String]): Unit = {
    val msg = "你好啊???"
    println("hello boys")
    println(1 + 1)
    println(msg)
    println("我有一头小毛驴 \n我从来也不骑 \n有一天我心血来潮骑着去赶集")
    // 1 打印多行
    println(
      """
        |我有一头小毛驴
        |我从来也不骑
        |有一天我心血来潮骑着去赶集
        |""".stripMargin)

    val a = "hello"
    val b = "tom"
    val c = 23
    val a1 = "hello1"
    val b1 = "tom1"
    val c1 = 24
    println(a + "-" + b + "-" + c + "-" + a1)
    // 2 获取多个变量值  拼接打印
    println(s"$a:$b-$c:$a1-$b1")

  }
}
